﻿@model ICollection<EventSys.MVC4Web.Models.ExternalLogin>

@if (Model.Count > 0)
{
    <h3>Inicios de sesión externos registrados</h3>
    <table>
        <tbody>
        @foreach (EventSys.MVC4Web.Models.ExternalLogin externalLogin in Model)
        {
            <tr>
                <td>@externalLogin.ProviderDisplayName</td>
                <td>
                    @if (ViewBag.ShowRemoveButton)
                    {
                        using (Html.BeginForm("Disassociate", "Account"))
                        {
                            @Html.AntiForgeryToken()
                            <fieldset>
                                @Html.Hidden("provider", externalLogin.Provider)
                                @Html.Hidden("providerUserId", externalLogin.ProviderUserId)
                                <input type="submit" value="Quitar" title="Quitar esta credencial de @externalLogin.ProviderDisplayName de su cuenta" />
                            </fieldset>
                        }
                    }
                    else
                    {
                        @: &nbsp;
                    }
                </td>
            </tr>
        }
        </tbody>
    </table>
}

